Skip to content

Conversation

@gyfora
Copy link
Contributor

@gyfora gyfora commented Jan 10, 2025

What is the purpose of the change

The autoscaler cleanup logic currently does not actually delete the state of the job from the state store only the cache. This can cause leaks in some cases and unintended retrieval of wrong state if the job is deleted then restarted.

Brief change log

  • Change cleanup to clearAll and flush state store
  • tests

Verifying this change

Unit tests have been extended to cover this more.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changes to the CustomResourceDescriptors: no
  • Core observer or reconciler logic that is regularly executed: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

@gyfora gyfora requested review from 1996fanrui and mxm January 10, 2025 15:18
@1996fanrui 1996fanrui self-assigned this Jan 11, 2025
Copy link
Member

@1996fanrui 1996fanrui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gyfora for the great and quick fix!

All changes LGTM, feel free to merge it if you think it's ready.

@gyfora
Copy link
Contributor Author

gyfora commented Jan 13, 2025

Thanks @1996fanrui I am going to test the 2 PRs together manually, then merge them :)

@gyfora gyfora merged commit 7a9bff7 into apache:main Jan 13, 2025
104 of 107 checks passed
@mxm
Copy link
Contributor

mxm commented Feb 4, 2025

Thanks for fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants